Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add webpack bundle injection and unit tests to build-plugins #871

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

mvirgil
Copy link

@mvirgil mvirgil commented Oct 16, 2024

Description

This uses the unplugin library, which should help us support other build tools in future. The "hooks" that
unplugin supports right now does not appear to help with injection into resulting bundles. So a custom webpack
config was added to help with this.

Adding skipTestLib to unblock work in short-term. Will need to figure out how to deal with unplugin transitive
dev/peer dependencies which are causing compile issues in its .d.ts file.

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

  • Manual testing
  • Added unit tests

Future task will handle integration test

Local manual tests performed using a Cisco repo with a Next.js 14 app

Set skipLibCheck on tsconfig to unblock
progress in short-term (unplugin .d.ts file causes issues due to
compile-time dependencies on other plugins)
@mvirgil mvirgil requested review from a team as code owners October 16, 2024 16:01
@t2t2 t2t2 merged commit b294974 into signalfx:bundler-plugin Oct 18, 2024
5 of 6 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants